//
//  MyComplaintsTableViewCell.m
//  明和智能
//
//  Created by 李李善 on 2018/8/23.
//  Copyright © 2018年 inno. All rights reserved.
//

#import "MyComplaintsTableViewCell.h"

@implementation MyComplaintsTableViewCell

-(void)onAsInitAddView:(UIView *)view forViewController:(UIViewController *)ViewController forDataSource:(id)dataSource AtIndexPath:(NSIndexPath *)indexPath
{
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    
    self.textLabel.textColor = [UIColor blackColor];
    self.textLabel.font = kSysFont(kFitW(12));
    self.detailTextLabel.textColor = hexCOLOR(@"B4B4B4");
    self.detailTextLabel.font = kSysFont(kFitW(10));
    WSELF(weakSelf);
    [self onMainSetSubViewFrame:^(UIView *view, CGPoint origin, CGSize size, CGPoint center) {
        [weakSelf.textLabel sizeToFit];
        weakSelf.textLabel.left = kFitW(15);
        weakSelf.textLabel.top = kFitH(10);
        
        [weakSelf.detailTextLabel sizeToFit];
        weakSelf.detailTextLabel.left = kFitW(15);
        weakSelf.detailTextLabel.top = weakSelf.textLabel.bottom+ kFitH(10);
        
    }];
}
-(void)update:(id)model forTableView:(UITableView *)tableView AtIndexPath:(NSIndexPath *)indexPath
{
    self.textLabel.text = @"都取消预约了还扣我的钱?";
    self.detailTextLabel.text =@"2017-10-13 23:30";

}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
